// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_PROD_WIP_CUR
// * CreateDate    : 2014-06-05 18:30:21
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:21
// * LastChanger   : 2014-06-05 18:30:21
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class ProdWipCurEntity : EntityBase
    {
        public ProdWipCurTable TableSchema
        {
            get
            {
                return ProdWipCurTable.Current;
            }
		}
		
		public ProdWipCurEntity()
        {

        }
		
		public ProdWipCurEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["Id"]));
			this.WoNo = Convert.ToString(CommonFunctions.ToObject(dr["WO_No"]));
			this.ProdId = Convert.ToString(CommonFunctions.ToObject(dr["Prod_Id"]));
			this.ProdCode = Convert.ToString(CommonFunctions.ToObject(dr["Prod_Code"]));
			this.ProdName = Convert.ToString(CommonFunctions.ToObject(dr["Prod_Name"]));
			this.Qty = Convert.ToInt32(CommonFunctions.ToObject(dr["Qty"]));
			this.ProdSn = Convert.ToString(CommonFunctions.ToObject(dr["Prod_SN"]));
			this.PreWorkgroupNo = Convert.ToString(CommonFunctions.ToObject(dr["Pre_WorkGroup_No"]));
			this.CurWorkgroupNo = Convert.ToString(CommonFunctions.ToObject(dr["Cur_WorkGroup_No"]));
			this.NxtWorkgroupNo = Convert.ToString(CommonFunctions.ToObject(dr["Nxt_WorkGroup_No"]));
			this.UserNo = Convert.ToString(CommonFunctions.ToObject(dr["User_No"]));
			this.PreTechnicNo = Convert.ToString(CommonFunctions.ToObject(dr["Pre_Technic_No"]));
			this.CurTechnicNo = Convert.ToString(CommonFunctions.ToObject(dr["Cur_Technic_No"]));
			this.NxtTechnicNo = Convert.ToString(CommonFunctions.ToObject(dr["Nxt_Technic_No"]));
			this.TechnicSeq = Convert.ToInt32(CommonFunctions.ToObject(dr["Technic_Seq"]));
			this.CurRouteNo = Convert.ToString(CommonFunctions.ToObject(dr["Cur_Route_NO"]));
			this.PreRouteNo = Convert.ToString(CommonFunctions.ToObject(dr["Pre_Route_No"]));
			this.NxtRouteNo = Convert.ToString(CommonFunctions.ToObject(dr["Nxt_Route_No"]));
			this.CurRouteName = Convert.ToString(CommonFunctions.ToObject(dr["Cur_Route_Name"]));
			this.DeftCode1 = Convert.ToString(CommonFunctions.ToObject(dr["Deft_Code1"]));
			this.DeftCode2 = Convert.ToString(CommonFunctions.ToObject(dr["Deft_Code2"]));
			this.DeftCode3 = Convert.ToString(CommonFunctions.ToObject(dr["Deft_Code3"]));
			this.PreAssetCode = Convert.ToString(CommonFunctions.ToObject(dr["Pre_Asset_Code"]));
			this.CurAssetCode = Convert.ToString(CommonFunctions.ToObject(dr["Cur_Asset_Code"]));
			this.NxtAssetCode = Convert.ToString(CommonFunctions.ToObject(dr["Nxt_Asset_Code"]));
			this.CurAssetName = Convert.ToString(CommonFunctions.ToObject(dr["Cur_Asset_Name"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["Status"]));
			this.MainRouteNo = Convert.ToString(CommonFunctions.ToObject(dr["Main_Route_NO"]));
			this.MainRouteName = Convert.ToString(CommonFunctions.ToObject(dr["Main_Route_Name"]));
			this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
			this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
			this.TechnicItemId = Convert.ToString(CommonFunctions.ToObject(dr["Technic_Item_Id"]));
			this.CurTechnicName = Convert.ToString(CommonFunctions.ToObject(dr["Cur_Technic_Name"]));
        }
		
		public ProdWipCurEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["Id"]));
			this.WoNo = Convert.ToString(CommonFunctions.ToObject(dr["WO_No"]));
			this.ProdId = Convert.ToString(CommonFunctions.ToObject(dr["Prod_Id"]));
			this.ProdCode = Convert.ToString(CommonFunctions.ToObject(dr["Prod_Code"]));
			this.ProdName = Convert.ToString(CommonFunctions.ToObject(dr["Prod_Name"]));
			this.Qty = Convert.ToInt32(CommonFunctions.ToObject(dr["Qty"]));
			this.ProdSn = Convert.ToString(CommonFunctions.ToObject(dr["Prod_SN"]));
			this.PreWorkgroupNo = Convert.ToString(CommonFunctions.ToObject(dr["Pre_WorkGroup_No"]));
			this.CurWorkgroupNo = Convert.ToString(CommonFunctions.ToObject(dr["Cur_WorkGroup_No"]));
			this.NxtWorkgroupNo = Convert.ToString(CommonFunctions.ToObject(dr["Nxt_WorkGroup_No"]));
			this.UserNo = Convert.ToString(CommonFunctions.ToObject(dr["User_No"]));
			this.PreTechnicNo = Convert.ToString(CommonFunctions.ToObject(dr["Pre_Technic_No"]));
			this.CurTechnicNo = Convert.ToString(CommonFunctions.ToObject(dr["Cur_Technic_No"]));
			this.NxtTechnicNo = Convert.ToString(CommonFunctions.ToObject(dr["Nxt_Technic_No"]));
			this.TechnicSeq = Convert.ToInt32(CommonFunctions.ToObject(dr["Technic_Seq"]));
			this.CurRouteNo = Convert.ToString(CommonFunctions.ToObject(dr["Cur_Route_NO"]));
			this.PreRouteNo = Convert.ToString(CommonFunctions.ToObject(dr["Pre_Route_No"]));
			this.NxtRouteNo = Convert.ToString(CommonFunctions.ToObject(dr["Nxt_Route_No"]));
			this.CurRouteName = Convert.ToString(CommonFunctions.ToObject(dr["Cur_Route_Name"]));
			this.DeftCode1 = Convert.ToString(CommonFunctions.ToObject(dr["Deft_Code1"]));
			this.DeftCode2 = Convert.ToString(CommonFunctions.ToObject(dr["Deft_Code2"]));
			this.DeftCode3 = Convert.ToString(CommonFunctions.ToObject(dr["Deft_Code3"]));
			this.PreAssetCode = Convert.ToString(CommonFunctions.ToObject(dr["Pre_Asset_Code"]));
			this.CurAssetCode = Convert.ToString(CommonFunctions.ToObject(dr["Cur_Asset_Code"]));
			this.NxtAssetCode = Convert.ToString(CommonFunctions.ToObject(dr["Nxt_Asset_Code"]));
			this.CurAssetName = Convert.ToString(CommonFunctions.ToObject(dr["Cur_Asset_Name"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["Status"]));
			this.MainRouteNo = Convert.ToString(CommonFunctions.ToObject(dr["Main_Route_NO"]));
			this.MainRouteName = Convert.ToString(CommonFunctions.ToObject(dr["Main_Route_Name"]));
			this.CreatedBy = Convert.ToString(CommonFunctions.ToObject(dr["CREATED_BY"]));
			this.CreatedDate = Convert.ToDateTime(CommonFunctions.ToObject(dr["CREATED_DATE"]));
			this.TechnicItemId = Convert.ToString(CommonFunctions.ToObject(dr["Technic_Item_Id"]));
			this.CurTechnicName = Convert.ToString(CommonFunctions.ToObject(dr["Cur_Technic_Name"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return ProdWipCurTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string Id
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Id)); }
            set { SetData(ProdWipCurTable.C_Id, value); }
        }
		
        [DataMember]
        public string WoNo
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_WO_No)); }
            set { SetData(ProdWipCurTable.C_WO_No, value); }
        }
		
        [DataMember]
        public string ProdId
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Prod_Id)); }
            set { SetData(ProdWipCurTable.C_Prod_Id, value); }
        }
		
        [DataMember]
        public string ProdCode
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Prod_Code)); }
            set { SetData(ProdWipCurTable.C_Prod_Code, value); }
        }
		
        [DataMember]
        public string ProdName
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Prod_Name)); }
            set { SetData(ProdWipCurTable.C_Prod_Name, value); }
        }
		
        [DataMember]
        public int Qty
        {
            get { return Convert.ToInt32(GetData(ProdWipCurTable.C_Qty)); }
            set { SetData(ProdWipCurTable.C_Qty, value); }
        }
		
        [DataMember]
        public string ProdSn
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Prod_SN)); }
            set { SetData(ProdWipCurTable.C_Prod_SN, value); }
        }
		
        [DataMember]
        public string PreWorkgroupNo
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Pre_WorkGroup_No)); }
            set { SetData(ProdWipCurTable.C_Pre_WorkGroup_No, value); }
        }
		
        [DataMember]
        public string CurWorkgroupNo
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Cur_WorkGroup_No)); }
            set { SetData(ProdWipCurTable.C_Cur_WorkGroup_No, value); }
        }
		
        [DataMember]
        public string NxtWorkgroupNo
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Nxt_WorkGroup_No)); }
            set { SetData(ProdWipCurTable.C_Nxt_WorkGroup_No, value); }
        }
		
        [DataMember]
        public string UserNo
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_User_No)); }
            set { SetData(ProdWipCurTable.C_User_No, value); }
        }
		
        [DataMember]
        public string PreTechnicNo
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Pre_Technic_No)); }
            set { SetData(ProdWipCurTable.C_Pre_Technic_No, value); }
        }
		
        [DataMember]
        public string CurTechnicNo
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Cur_Technic_No)); }
            set { SetData(ProdWipCurTable.C_Cur_Technic_No, value); }
        }
		
        [DataMember]
        public string NxtTechnicNo
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Nxt_Technic_No)); }
            set { SetData(ProdWipCurTable.C_Nxt_Technic_No, value); }
        }
		
        [DataMember]
        public int TechnicSeq
        {
            get { return Convert.ToInt32(GetData(ProdWipCurTable.C_Technic_Seq)); }
            set { SetData(ProdWipCurTable.C_Technic_Seq, value); }
        }
		
        [DataMember]
        public string CurRouteNo
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Cur_Route_NO)); }
            set { SetData(ProdWipCurTable.C_Cur_Route_NO, value); }
        }
		
        [DataMember]
        public string PreRouteNo
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Pre_Route_No)); }
            set { SetData(ProdWipCurTable.C_Pre_Route_No, value); }
        }
		
        [DataMember]
        public string NxtRouteNo
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Nxt_Route_No)); }
            set { SetData(ProdWipCurTable.C_Nxt_Route_No, value); }
        }
		
        [DataMember]
        public string CurRouteName
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Cur_Route_Name)); }
            set { SetData(ProdWipCurTable.C_Cur_Route_Name, value); }
        }
		
        [DataMember]
        public string DeftCode1
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Deft_Code1)); }
            set { SetData(ProdWipCurTable.C_Deft_Code1, value); }
        }
		
        [DataMember]
        public string DeftCode2
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Deft_Code2)); }
            set { SetData(ProdWipCurTable.C_Deft_Code2, value); }
        }
		
        [DataMember]
        public string DeftCode3
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Deft_Code3)); }
            set { SetData(ProdWipCurTable.C_Deft_Code3, value); }
        }
		
        [DataMember]
        public string PreAssetCode
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Pre_Asset_Code)); }
            set { SetData(ProdWipCurTable.C_Pre_Asset_Code, value); }
        }
		
        [DataMember]
        public string CurAssetCode
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Cur_Asset_Code)); }
            set { SetData(ProdWipCurTable.C_Cur_Asset_Code, value); }
        }
		
        [DataMember]
        public string NxtAssetCode
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Nxt_Asset_Code)); }
            set { SetData(ProdWipCurTable.C_Nxt_Asset_Code, value); }
        }
		
        [DataMember]
        public string CurAssetName
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Cur_Asset_Name)); }
            set { SetData(ProdWipCurTable.C_Cur_Asset_Name, value); }
        }
		
        [DataMember]
        public string Status
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Status)); }
            set { SetData(ProdWipCurTable.C_Status, value); }
        }
		
        [DataMember]
        public string MainRouteNo
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Main_Route_NO)); }
            set { SetData(ProdWipCurTable.C_Main_Route_NO, value); }
        }
		
        [DataMember]
        public string MainRouteName
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Main_Route_Name)); }
            set { SetData(ProdWipCurTable.C_Main_Route_Name, value); }
        }
		
        [DataMember]
        public string CreatedBy
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_CREATED_BY)); }
            set { SetData(ProdWipCurTable.C_CREATED_BY, value); }
        }
		
        [DataMember]
        public DateTime CreatedDate
        {
            get { return Convert.ToDateTime(GetData(ProdWipCurTable.C_CREATED_DATE)); }
            set { SetData(ProdWipCurTable.C_CREATED_DATE, value); }
        }
		
        [DataMember]
        public string TechnicItemId
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Technic_Item_Id)); }
            set { SetData(ProdWipCurTable.C_Technic_Item_Id, value); }
        }
		
        [DataMember]
        public string CurTechnicName
        {
            get { return Convert.ToString(GetData(ProdWipCurTable.C_Cur_Technic_Name)); }
            set { SetData(ProdWipCurTable.C_Cur_Technic_Name, value); }
        }
		
		#endregion
	}
	
	
}	

